<template>
  <div class="home">
    <div>
      <img alt="Vue logo" src="../assets/logo.png" />
    </div>
    <div class="inline-block">
      <vue-essential-links class="text-left"></vue-essential-links>
    </div>
  </div>
</template>

<script>
import Person from '@/utils'
// @ is an alias to /src
const VueEssentialLinks = () => import(/* webpackChunkName: "vueEssentialLinks" */ '@/assets/links.md')

export default {
  name: 'Home',

  components: {
    VueEssentialLinks
  },
  methods: {},
  mounted() {
    this.$service.get('/demo.json').then(res => {
      window.console.log(res)
    })
    const person = new Person('james', 30)
    window.console.log(person.getName())
  }
}
</script>

<style lang="less" scoped>
.text-left {
  text-align: left;
}
.inline-block {
  display: inline-block;
}
</style>
